﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Context
{
    public class GameContextActorInformations
    {
        public int ContextID { get; set; }
        public Look.EntityLook Look { get; set; }
        public EntityDispositionInformations Disposition { get; set; }

        public GameContextActorInformations(int contextID, Look.EntityLook look, EntityDispositionInformations disposition)
        {
            this.ContextID = contextID;
            this.Look = look;
            this.Disposition = disposition;
        }

        public void Serialize(NetworkMessage message)
        {
            message.WriterBuffer.writeInt(this.ContextID);
            this.Look.Serialize(message);
            message.WriterBuffer.writeShort(60);
            this.Disposition.Serialize(message);
        }
    }
}
